<?php
$this->breadcrumbs = array(
    'Posts' => array('index'),
    'Manage',
);
?>

<div class="box">
    <header>
        <div class="icons"><i class="icon-tasks"></i></div>
        <h5>Manager <a href="<?php echo url($this->module->id.'/post/create', array('post_type' => $_GET['post_type'])) ?>"><i class="icon icon-pencil"></i>Create new</a></h5>
    </header>
    <div class="body">

        <?php
        $this->widget('bootstrap.widgets.TbGridView', array(
            'id' => 'post-grid',
            //'type' => 'striped bordered condensed',
            'dataProvider' => $model->search(),
            'filter' => $model,
            'columns' => array(
                array(
                    'name' => 'post_id',
                    'htmlOptions' => array('width' => '50'),
                    'header' => '#'
                ),
                'post_title',
                array(
                    'name' => 'updated',
                    'type' => 'datetime',
                    'filter' => FALSE
                ),
                array(
                    'class' => 'bootstrap.widgets.TbButtonColumn',
                    'template' => '{update}{delete}',
                    'header' => 'Action',
                ),
            ),
        ));
        ?>

    </div>
</div>
